package blog.open1111.service.impl;

import blog.open1111.dao.ArcTypeDao;
import blog.open1111.entity.ArcType;
import blog.open1111.service.ArcTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@SuppressWarnings("all")
@Service
public class ArcTypeServiceImpl implements ArcTypeService {
    @Autowired
    private ArcTypeDao arcTypeDao;

    @Override
    public List<ArcType> list(Map<String, Object> map) {
        return arcTypeDao.list(map);
    }

    @Override
    public Long getTotal(Map<String, Object> map) {
        return arcTypeDao.getTotal(map);
    }

    @Override
    public Integer add(ArcType arcType) {
        return arcTypeDao.add(arcType);
    }

    @Override
    public Integer update(ArcType arcType) {
        return arcTypeDao.update(arcType);
    }

    @Override
    public Integer delete(Integer id) {
        return arcTypeDao.delete(id);
    }
}
